package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum SmsSendTypeEnum {
    SEND_NOW((byte)1,"立即发送"),
    SEND_TIMER((byte)2,"定时发送");

    private Byte value;
    private String desc;

    public static SmsSendTypeEnum enumOf(byte value) {
        for (SmsSendTypeEnum t : values()) {
            if (t.value.byteValue() == value) {
                return t;
            }
        }
        return null;
    }
}
